package com.vonchange.headb.core.bean;

import java.util.List;

/**
 * 字段条件中转实体
 * @author von_change@163.com
 * @date 2015-6-14 下午12:43:44
 */
public class ColumnCondition {
	private String originalKey; 
	private String  leftBracket="";
	private String  rightBracket="";
	private String andOr="and";
	private String fieldName= "";
	private String tableAs="t.";
	private String columnName="";
	private String condition="";// 条件
	private Object value;//值
	private List<Object> cookedValue;
	private String directValue="?";//值
	private String type;
	private boolean ifQuery=false;
    private Boolean tempFlag=true;//临时用于判断是模糊还是日期模糊
    private  int   parameterNum=1;//参数个数
    private  String sqlFragment;
    private  boolean xmlSqlFlag=false;
    private List<?> values; 
	public List<?> getValues() {
		return values;
	}

	public void setValues(List<?> values) {
		this.values = values;
	}

	public int getParameterNum() {
		return parameterNum;
	}

	public void setParameterNum(int parameterNum) {
		this.parameterNum = parameterNum;
	}

	public Boolean getTempFlag() {
		return tempFlag;
	}

	public ColumnCondition setTempFlag(Boolean tempFlag) {
		this.tempFlag = tempFlag;
		return this;
	}

	public List<Object> getCookedValue() {
		return cookedValue;
	}

	public boolean getXmlSqlFlag() {
		return xmlSqlFlag;
	}

	public void setXmlSqlFlag(boolean xmlSqlFlag) {
		this.xmlSqlFlag = xmlSqlFlag;
	}

	public void setCookedValue(List<Object> cookedValue) {
		this.cookedValue = cookedValue;
	}

	public String getOriginalKey() {
		return originalKey;
	}

	public void setOriginalKey(String originalKey) {
		this.originalKey = originalKey;
	}

	public String getDirectValue() {
		return directValue;
	}

	public String getSqlFragment() {
		return sqlFragment;
	}

	public void setSqlFragment(String sqlFragment) {
		this.sqlFragment = sqlFragment;
	}

	public ColumnCondition setDirectValue(String directValue) {
		this.directValue = directValue;
		return this;
	}

	public String getLeftBracket() {
		return leftBracket;
	}

	public ColumnCondition setLeftBracket(String leftBracket) {
		this.leftBracket = leftBracket;
		return this;
	}

	public String getRightBracket() {
		return rightBracket;
	}

	public ColumnCondition setRightBracket(String rightBracket) {
		this.rightBracket = rightBracket;
		return this;
	}

	public String getAndOr() {
		return andOr;
	}

	public ColumnCondition setAndOr(String andOr) {
		this.andOr = andOr;
		return this;
	}



	public String getFieldName() {
		return fieldName;
	}

	public void setFieldName(String fieldName) {
		this.fieldName = fieldName;
	}

	public Object getValue() {
		return value;
	}

	public ColumnCondition setValue(Object value) {
		this.value = value;
		return this;
	}



	public String getColumnName() {
		return columnName;
	}

	public ColumnCondition setColumnName(String columnName) {
		this.columnName = columnName;
		return this;
	}

	public String getCondition() {
		return condition;
	}

	public ColumnCondition setCondition(String condition) {
		this.condition = condition;
		return this;
	}

	public String getType() {
		return type;
	}

	public ColumnCondition setType(String type) {
		this.type = type;
		return this;
	}

	public boolean getIfQuery() {
		return ifQuery;
	}

	public ColumnCondition setIfQuery(boolean ifQuery) {
		this.ifQuery = ifQuery;
		return this;
	}

	public String getTableAs() {
		return tableAs;
	}

	public void setTableAs(String tableAs) {
		this.tableAs = tableAs;
	}









}
